package com.papercutting.platform.service;

import com.papercutting.platform.dto.request.AIChatRequest;
import com.papercutting.platform.dto.response.AIChatResponse;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

/**
 * AI服务接口
 */
public interface AIService {
    
    /**
     * 与AI进行对话
     * 
     * @param request 聊天请求
     * @return AI响应
     */
    AIChatResponse chat(AIChatRequest request);
    
    /**
     * 流式对话
     * 
     * @param request 聊天请求
     * @return SSE发射器
     */
    SseEmitter streamChat(AIChatRequest request);
}

